package com.baseweb.webadmin.core.constants;

import java.util.ArrayList;
import java.util.List;

public enum PayType {
    ALIPAY(1,"支付宝"), WECHAT_PAY(2,"微信支付"), BANK_PAY(6,"银联支付");

    private int code;
    private String name;
    PayType(int code, String name){
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static List<PayType> getAllData(){
        List<PayType> result = new ArrayList<PayType>();
        for (PayType current : PayType.values())
        {
            result.add(current);
        }
        return result;
    }

}
